package com.kailong.servlet.seat;

import com.kailong.dao.admin.ManageSeatDao;
import com.kailong.pojo.Seat;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
@WebServlet("/admin/seatUpdate")
public class SeatUpdate extends HttpServlet {
    protected  void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");

        String tno = request.getParameter("tno");

        Seat seat = ManageSeatDao.selectByTno(tno);

        request.setAttribute("seat",seat);
        request.setAttribute("cpage",request.getParameter("cpage"));
        request.getRequestDispatcher("adminSeatModify.jsp").forward(request,response);

    }
}
